package com.larkin.utils.aop;

import org.aspectj.lang.ProceedingJoinPoint;
import org.aspectj.lang.annotation.Around;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

/**
 * Created by liujin on 2019/4/8.
 *
 * @description TODO
 */
@Aspect
@Component
public class SomeAdvice {

    @Around("execution(* com.larkin.utils.service.IUserService.*(..))")
    public Object around(ProceedingJoinPoint pjp) throws Throwable {
        System.out.println("这是前面执行的东西");
        Object result = pjp.proceed();
        System.out.println("这是后面执行的东西");
        return result;
    }
}
